package ace.tool.generate.code.impl.generator.graphql;

import ace.tool.generate.code.impl.generator.AbstractGenerator;
import ace.tool.generate.code.impl.generator.graphql.model.GraphqlTemplateModel;

/**
 * @author caspar
 * @date 2023/11/17 9:57 spring data jdbc entity 生成graphql 相关文件
 */
public abstract class AbstractGraphqlGenerator<Input extends GenericGeneratorInput>
    extends AbstractGenerator<Input, GraphqlTemplateModel> {

  private final GraphqlTemplateModelResolver resolver = new GraphqlTemplateModelResolver();

  @Override
  protected GraphqlTemplateModel resolveModel(Input input) {
    GraphqlTemplateModel model = this.resolver.resolveModel(input.getParams());
    return model;
  }
}
